﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OBSwindles
{
    public class LoanInfo
    {
        private int _LoanID;
        private int _CustomerID;
        private string _LoanType;
        private float _LoanAmount;
        private float _LoanIntrestRate;
        private int _LoanTerm;
        private DateTime _LoanStartDate;
        private int _LoanOfficerID;
        private float _LoanRepaymentCurrent;
        private DateTime _LoanModifiedDate;
        private Employee _LoanOfficer;

        public LoanInfo()
        {
        }

        public LoanInfo(int p_LoanID, int p_CustomerID, string p_LoanType, float p_LoanAmount
            , float p_LoanIntrestRate, int p_LoanTerm, DateTime p_LoanStartDate, int p_LoanOfficerID
            , float p_LoanRepaymentCurrent, DateTime p_LoanModifiedDate)
        {
            _LoanID = p_LoanID;
            _CustomerID = p_CustomerID;
            _LoanType = p_LoanType;
            _LoanAmount = p_LoanAmount;
            _LoanIntrestRate = p_LoanIntrestRate;
            _LoanTerm = p_LoanTerm;
            _LoanStartDate = p_LoanStartDate;
            _LoanOfficerID = p_LoanOfficerID;
            _LoanRepaymentCurrent = p_LoanRepaymentCurrent;
            _LoanModifiedDate = p_LoanModifiedDate;
        }
        public virtual int LoanID
        {
            get { return _LoanID; }
            set { _LoanID = value; }
        }

        public virtual int CustomerID
        {
            get { return _CustomerID; }
            set { _CustomerID = value; }
        }

        public virtual string LoanType
        {
            get { return _LoanType; }
            set { _LoanType = value; }
        }

        public virtual float LoanAmount
        {
            get { return _LoanAmount; }
            set { _LoanAmount = value; }
        }

        public virtual float LoanIntrestRate
        {
            get { return _LoanIntrestRate; }
            set { _LoanIntrestRate = value; }
        }

        public virtual int LoanTerm
        {
            get { return _LoanTerm; }
            set { _LoanTerm = value; }
        }

        public virtual DateTime LoanStartDate
        {
            get { return _LoanStartDate; }
            set { _LoanStartDate = value; }
        }

        public virtual string LoanStartDateString
        {
            get { return _LoanStartDate.ToShortDateString(); }
        }

        public virtual int LoanOfficerID
        {
            get { return _LoanOfficerID; }
            set { _LoanOfficerID = value; }
        }

        public virtual float LoanRepaymentCurrent
        {
            get { return _LoanRepaymentCurrent; }
            set { _LoanRepaymentCurrent = value; }
        }

        public virtual DateTime LoanModifiedDate
        {
            get { return _LoanModifiedDate; }
            set { _LoanModifiedDate = value; }
        }

        public virtual string LoanModifiedDateString
        {
            get { return _LoanModifiedDate.ToShortDateString(); }
        }


        public virtual Employee LoanOfficer
        {
            get { return _LoanOfficer; }
            set { _LoanOfficer = value; }
        }

    }
}
